package GA;

public class test
{
	public static void main(String[] args)
	{
		int amount = 80;
		int parents = 20;
		int[] arr = new int[10];
		int[] temparr = new int[10];
		int j = 0;
		int temp = amount;
		double x = 0.62;
		for(int i=0; i < parents; i = i + 2 )
		{
			temp = ((int)(temp - 2 - (i*x)));
			System.out.println(temp);
			temparr[j] = temp;
			if(i == 0)
			{
				arr[j++] = amount - temp;
			}
			else
			{
				arr[j] = temparr[j-1] - temp;
				j++;
			}
		}
		System.out.println("\n");
		for(int i : arr)
		{
			System.out.println(i);
		}
	}
}